Fix code submission delays when the workspace viewer contains large number of objects#1713
Open
Fred-Wu wants to merge 2 commits into
Open
Fix code submission delays when the workspace viewer contains large number of objects#1713Fred-Wu wants to merge 2 commits into
Fred-Wu wants to merge 2 commits into
Conversation
…arge objects by delaying workspace inspection until after command submission. - Fixed nested expansion in the workspace viewer for lists, environments, pairlists, S4 objects, and data frames. - Improved workspace viewer performance by loading object items on demand. Expanding an object shows the first 500 items directly, and selecting the ellipsis row loads the next 500.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR is to fix code submission delays when the workspace viewer contains large, wide, or deeply nested objects.
After every command, the workspace viewer inspected objects in the global environment to build their details. Inspecting and serialising this information could take significant time for large objects. Because the inspection runs in the active R session, R could not process newly submitted code until the workspace refresh finished, which causes noticeable delay between code submission and execution.
Workspace refreshes now collect only concise top-level metadata. Refreshes are delayed briefly, and repeated refresh requests are combined into a single refresh, allowing newly submitted code to run first. Detailed object metadata is lazy-loaded when an object is expanded.
Changes
...loading the next page.r.session.objectLengthLimitr.session.objectTimeoutr.session.levelOfObjectDetail